home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16641 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: fas-news.harvard.edu!scws40!ccshan
  2. From: ccshan@scws40.harvard.edu (Chung-chieh Shan)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: SGI's C++ compiler and the boolean type
  5. Date: 11 Apr 1996 16:03:08 GMT
  6. Organization: Harvard University
  7. Message-ID: <4kjafs$h4b@decaxp.HARVARD.EDU>
  8. References: <4kefm7$oao@ncar.ucar.edu> <4kg6fv$h7k@nic.ftns.no> <WALD.96Apr11105913@woodpecker.lcs.mit.edu>
  9. NNTP-Posting-Host: scws40.harvard.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. > No user-level definition of bool will make distinguish() return 0, as
  13. > it must in the draft standard.
  14.  
  15. Hmm, why can't I just define bool as a class?  I realize there are
  16. problems with some library routines (for example making isalpha(char)
  17. return bool rather than int -- overloading can't be used here), but
  18. distinguishing between a bool class and an int type (which can be
  19. implicitly casted to each other) is certainly possible.
  20.  
  21. --
  22. blue | Chung-chieh Shan (Ken) | Life is a sexually transmitted
  23.  ()  | ccshan@fas.harvard.edu |      math too is a terminal representation
  24.  /\  | Finger for PGP key     |      game.         disease. of Quality.
  25.